﻿@using SH = EMoney.IStock.Client.Framework.StringHelper;
@{
    Layout = null;
    var st=ViewBag.LoginState+"";
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>腾讯大赛</title>
    <link href="@SH.GetStaticFile("IStockClientStatic/jrpt/css/black.css")" rel="stylesheet" type="text/css" />
    <script src="http://static.emoney.cn/js/libs/jquery.min.1.8.3.js" type="text/javascript"></script>
    <script src="@SH.GetStaticFile("IStockClientStatic/jrpt/js/EMWEBUIscrollBar.js")" type="text/javascript"></script>
</head>
<body>
    <div class="guide">
        <div class="guide_box" style="display:@(st=="1"?";":"none;")">
            <ul class="guide_succeed">
              <li class="guide_succeed_font">@ViewBag.Msg</li>
              <li class="guide_succeed_font02" id="userQQCom"><a href="javascript:;"><img src="@SH.GetStaticFile("IStockClientStatic/jrpt/images/guide_img02.png")" /></a></li>  
            </ul>
        </div>
         <div class="guide_box" style="display:@(st=="1"?"none;":";")">
             <ul class="guide_failure">
                 <li class="guide_failure_font"><span>@ViewBag.Msg</span></li>
                 <li class="guide_li_font04" id="userQQBind"><a href="javascript:;"><img src="@SH.GetStaticFile("IStockClientStatic/jrpt/images/guide_img04.png")" /></a></li>
             </ul>
         </div>
    </div>
    <input type="hidden" id="hidUID" value="@ViewBag.UserID" />
    <input type="hidden" id="hidRegisterState" value="@st" />
    <script type="text/javascript">
        var www = "@Url.Content("~/")";
        $(document).ready(function () {
            $("#userQQCom a,#userQQCom img").click(function () {
                window.open("http://www.emoney.cn");
                BindJSFun();
            });

            $("#userQQBind a,#userQQBind img").click(function () {
                BindUserQQ();
                return false;
            });
        });

        //绑定QQ
        function BindUserQQ() {
            var uid=$("#hidUID").val();
            $('#registerIframe', parent.document).attr("src", www + "Focus/QQ?uid=" + uid);
        }

        //页面加载完成后调用
        function BindJSFun() {
            window.parent.RegisterColse();
        }
    </script>
</body>
</html>
